package com.ljl.Mapper;


import com.ljl.Entity.AdminUser;
import com.ljl.Entity.Custom;
import com.ljl.Entity.Imgyzm;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminUserMapper {


    //TODO 增加管理员信息
    @Insert("INSERT INTO adminuser (username, password) values (#{username}, #{password})")
    int addAdminUser(AdminUser adminUser);

    //TODO 查询管理员-账号查询密码
    @Select("SELECT * FROM adminuser WHERE username = #{username} AND password = #{password}")
    AdminUser loginForUsername(AdminUser adminUser);

}
